<template>
	<view>
		<view class="status-content">{{statusTitle}}</view>
		<view class="auth-success">{{statusContent}}</view>
		<view style="width: 560rpx;height:100rpx;position: absolute;bottom: 200rpx;left: 95rpx;">
			<u-button text="返回首页" type="primary" @tap="fhIndex"></u-button>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status:'',
				statusTitle:'',
				statusContent:'',
				data:{
					0:{'title':'认证失败','statusContent' : '认证失败，未授权。不建议购买!'},
					1:{'title':'认证成功','statusContent' : '诚信始于科技'},
					2:{'title':'重复销售 。','statusContent' : '商品已售出，不建议重复购买'}
				}
			}
		},
		onLoad(query){
			this.status = query.status
			uni.setNavigationBarTitle({
				title: this.data[this.status].title
			})
			
			this.statusTitle = this.data[this.status].title
			this.statusContent = this.data[this.status].statusContent
		},
		methods: {
			fhIndex(){
				uni.switchTab({
					url:'/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.status-content{
	font-size: 44rpx;
	font-weight: 600;
	text-align: center;
	padding-top: 200rpx;
	margin-bottom: 40rpx;
}
.auth-success{
	text-align: center;
	font-size: 28rpx;
	color: #676767;
}

</style>
